home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / i2c / max732x.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-12-24  |  495 b   |  20 lines

  1. #ifndef __LINUX_I2C_MAX732X_H
  2. #define __LINUX_I2C_MAX732X_H
  3.  
  4. /* platform data for the MAX732x 8/16-bit I/O expander driver */
  5.  
  6. struct max732x_platform_data {
  7.     /* number of the first GPIO */
  8.     unsigned    gpio_base;
  9.  
  10.     void        *context;    /* param to setup/teardown */
  11.  
  12.     int        (*setup)(struct i2c_client *client,
  13.                 unsigned gpio, unsigned ngpio,
  14.                 void *context);
  15.     int        (*teardown)(struct i2c_client *client,
  16.                 unsigned gpio, unsigned ngpio,
  17.                 void *context);
  18. };
  19. #endif /* __LINUX_I2C_MAX732X_H */
  20.